#ifndef __ecf_prc_
#define __ecf_prc_


#include <hidef.h>      /* common defines and macros */
#include "derivative.h"      /* derivative-specific definitions */

#include "ADS1292R.h"
#include "LCD.h"

#define  filter_size  161
#define   N_rate              1200
#define   DIF_SIGNAL          (1)

//extern unsigned char showdata_flag;
void data_trans(void);
void  ECG_IIR_filter(void);
void  Show_Data(void);
signed long  ECG_FIR_filter(short WorkingBuff, short * CoeffBuf);

int  cal_rate(long  Data);
unsigned short cal_rate_wh(void);
void draw_ecg_wave(void);
void draw_ecg_wave_rate(void);

#endif //__ecf_prc_
